package com.iqismart.shorturl.config;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Auther sty
 * @createTime 2019/10/14 02:35
 */
@Aspect
@Component
@Order(-2147483647)
public class GetUidAspect {
    public GetUidAspect() {
    }

    @Before("@annotation(com.iqismart.shorturl.annotation.GetUid)")
    public void before(JoinPoint point) {
        UidHolder.getUid();
    }

    @After("@annotation(com.iqismart.shorturl.annotation.GetUid)")
    public void after(JoinPoint point) {
    }
}

